import request from '@/utils/request'

// 查询整经机实时数据列表
export function listWarp(query) {
  return request({
    url: '/realtime/warp/list',
    method: 'get',
    params: query
  })
}

// 查询整经机实时数据详细
export function getWarp(id) {
  return request({
    url: '/realtime/warp/' + id,
    method: 'get'
  })
}

// 新增整经机实时数据
export function addWarp(data) {
  return request({
    url: '/realtime/warp',
    method: 'post',
    data: data
  })
}

// 修改整经机实时数据
export function updateWarp(data) {
  return request({
    url: '/realtime/warp',
    method: 'put',
    data: data
  })
}

// 删除整经机实时数据
export function delWarp(id) {
  return request({
    url: '/realtime/warp/' + id,
    method: 'delete'
  })
}

// 导出整经机实时数据
export function exportWarp(query) {
  return request({
    url: '/realtime/warp/export',
    method: 'get',
    params: query
  })
}